<?php
// namespace demo;
/**
 *
 * @authors  Ysg (y.shi.guo@gmail.com)
 * @website  http://ysg.bonza.cn
 * @date     2017-07-24 11:43:02
 */

header("Content-type:text/html;charset:utf8;");
header("Pragma: no-cache");
header("Pragma: no-cache");

date_default_timezone_set('PRC');

define("ROOT_PATH",realpath('.'));

/*$arrA = ['a'=>'a','ab'=>'ab'];
$arrB = ['b'=>'b','ab'=>'ab'];

// $arr = $arrA + $arrB;

$arr = array_merge($arrA,$arrB);
// var_dump($arr);

function echo_name($name){
	echo $name;
}


call_user_func_array('echo_name',$arr);*/

// false?:die('dddd');

$im = imagecreate(100,100);

$string = '你好';

$bg = imagecolorallocate($im, 200, 200, 200);
$black = imagecolorallocate($im, 100, 100, 100);

// 左上角输出字符 P
imagechar($im, 5, 0, 0, $string, $black);

header('Content-type: image/png');
imagepng($im);

























